from src.exts import db
from src.models.base_model import BaseModel


class Tag(BaseModel):
    """标签类"""
    __tablename__ = "tb_post_mtm_tag"

    id = db.Colunm(db.String(128), primary_key=True)
    post_id = db.Colunm(db.String(128), nullable=False)
    tag_id = db.Colunm(db.String(128), nullable=False)